package entity

type Result struct {
	//状态码
	//200 成功
	//300 失败
	code int

	//描述
	status string

	//数据
	data interface{}
}

func (res *Result) SetCode(code int) {
	res.code = code
}
func (res *Result) SetStatus(status string) {
	res.status = status
}
func (res *Result) SetData(data interface{}) {
	res.data = data
}
